//using System.Collections;
//using System.Collections.Generic;
//using UnityEngine;
///// <summary>
///// AppsFlyerSDK代理，用来监控广告投放，用户下载量
///// </summary>
//public class AppsFlyerAgent {
//    //topifish账号
//    //static string dev_key = "5NAo8N8zJXX9a2bS8jR6u8";
//    //运营商账号
//    //static string dev_key = "h7LdWNKqJn6jRVqq6DTUca";
//    //运营2019-2-20新发来的账号
//    static string dev_key = "K4nduk3TCF2R22485HuF3i";

//    public static void Init() {
//        //Application.runInBackground = true;
//       // Screen.orientation = ScreenOrientation.Portrait;
//        string AppsFlyerTrackerCallbacksName = "AppsFlyerTrackerCallbacks";
//        /* Mandatory - set your AppsFlyer’s Developer key. */
//        AppsFlyer.setAppsFlyerKey(dev_key);
//        /* For detailed logging */
//        AppsFlyer.setIsDebug (true);
//#if UNITY_IOS
//        /* Mandatory - set your apple app ID
//            NOTE: You should enter the number only and not the "ID" prefix */
//        AppsFlyer.setAppID (Application.identifier);
//        AppsFlyer.trackAppLaunch ();
//#elif UNITY_ANDROID
//        /* Mandatory - set your Android package name */
//        Debug.Log("安卓包名___" + Application.identifier);
//        AppsFlyer.setAppID (Application.identifier);
//        /* For getting the conversion data in Android, you need to add the "AppsFlyerTrackerCallbacks" listener.*/
//        AppsFlyer.init (dev_key, AppsFlyerTrackerCallbacksName);
//#endif
//        GameObject gg = new GameObject(AppsFlyerTrackerCallbacksName);
//        GameObject.DontDestroyOnLoad(gg);
//        gg.AddComponent<AppsFlyerTrackerCallbacks>();
//    }
  




//    //A custom event tracking
//    public static void Purchase() {
//        Dictionary<string, string> eventValue = new Dictionary<string, string>();
//        eventValue.Add("af_revenue", "300");
//        eventValue.Add("af_content_type", "category_a");
//        eventValue.Add("af_content_id", "1234567");
//        eventValue.Add("af_currency", "USD");
//        AppsFlyer.trackRichEvent("af_purchase", eventValue);

//    }
//}
